'-28 a 63, valores fuera de ese rango pueden colgar
'aprox cada step d gbstudio music es 0.08 de duracion


'SONIDOS SFX
'0 SELECCION 
'1 PASITOS 
'2 INICIO AVENTURA 
'3 llave-corazon-tiempo, 4 trampa, 5 batalla
'6 game over
'7 nivel superado

'0 SELECCION
SUB playSFX0()

        
        BEEP .04,12
        BEEP .04,12
        BEEP .04,-24
        BEEP .04,19
        BEEP .04,19
        BEEP .04,19     
        BEEP .04,19      
        BEEP .04,19
   
    
END SUB

'1 PASITOS
SUB playSFX1()
'IF sound>1
IF soundStep= 0 then
        

        BEEP .03,9
        BEEP .02,10
        BEEP .01,11
        BEEP .01,12
        BEEP .01,13
        BEEP .01,14       
        BEEP .01,16        
        BEEP .01,20

        soundStep=soundStep+1
        
ELSE IF soundStep = 1 then


        BEEP .03,8
        BEEP .02,9
        BEEP .01,10
        BEEP .01,11
        BEEP .01,12
        BEEP .01,13       
        BEEP .01,15        
        BEEP .01,19
       soundStep=0
       
END IF 

'END if

END SUB

'2 INICIO AVENTURA 
SUB playSFX2()
'IF sound>0
        BEEP .11,16
        BEEP .27,16
        BEEP .11,16
        BEEP .27,17
        BEEP .11,14
        BEEP .48,16
  
 'END if    
END SUB

'3 BONUS BUENO
SUB playSFX3()

        BEEP .11,16
        BEEP .11,16
        BEEP .11,15
        BEEP .48,16
     
END SUB

'4 BONUS MALO
SUB playSFX4()
        BEEP .04,28
        BEEP .04,31
        BEEP .04,35
        BEEP .04,38
        BEEP .04,16
        BEEP .04,17
        BEEP .04,23
        BEEP .04,26
        BEEP .04,4
        BEEP .04,5     
        BEEP .04,11
        BEEP .04,14
        BEEP .04,-8
        BEEP .04,-7
        BEEP .04,-1
        BEEP .04,2
        BEEP .04,-20
        BEEP .04,-19
        BEEP .08,-13        
END SUB

'5 ENCUENTRO
SUB playSFX5()
        BEEP .11,20
        BEEP .11,16
        BEEP .11,15
        BEEP .11,11
        
        BEEP .11,20
        BEEP .11,16
        BEEP .11,15
        BEEP .11,11
        

        BEEP .11,15
        BEEP .11,16
        BEEP .11,15
        BEEP .11,16
        
        BEEP .48,15      
END SUB

'6 GAME OVER
SUB playSFX6()
        
        BEEP .24,18
        BEEP .08,18
        BEEP .32,17
        
        BEEP .24,16       
        BEEP .08,16
        BEEP .32,15
        
        BEEP .48,14
            
 
END SUB

'7 NIVEL SUPERADO
SUB playSFX7()
        
        BEEP .08,4
        BEEP .08,5
        BEEP .08,7
        BEEP .08,11        
        
        BEEP .32,12      
        BEEP .16,12
        BEEP .08,12
        BEEP .08,12
        
        BEEP .32,10
        BEEP .24,15           
        BEEP .08,10
        BEEP .48,12       
        
END SUB
